﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GoodsInvoicing.Model.User;

namespace GoodsInvoicing.Views.View
{
    public interface ILoginForm
    {
        /// <summary>
        /// 登录事件  
        /// </summary>
        event EventHandler<EventArgs> LoginButtonClick;
        
        /// <summary>
        /// 登录用户名
        /// </summary>
        string LoginName { get; set; }

        /// <summary>
        /// 登录用户密码
        /// </summary>
        string LoginPWD { get; set; }

        /// <summary>
        /// 是否登录成功
        /// </summary>
        bool IsLogin { get; set; }

        /// <summary>
        /// 关闭登录Form
        /// </summary>
        void LoginFormClose();

        /// <summary>
        /// 显示主窗口
        /// </summary>
        void MainFormShow(UserDetail user, MainForm form);
    }
}
